import request from '@/utils/request'

/** *
 * 列表-分页
 */
function page(data) {
  return request({
    url: '/sapi/sys/resource/page',
    method: 'post',
    data: data
  })
}

/** *
 * 添加
 * @param data
 */
function add(data) {
  return request({
    url: '/sapi/sys/resource/add',
    method: 'post',
    data: data
  })
}

/** *
 * 修改
 * @param data
 */
function edit(data) {
  return request({
    url: '/sapi/sys/resource/edit',
    method: 'post',
    data: data
  })
}

/** *
 * 详情
 * @param data
 */
function detail(data) {
  return request({
    url: '/sapi/sys/resource/detail',
    method: 'post',
    data: data
  })
}

/** *
 * 删除
 * @param data
 */
function del(data) {
  return request({
    url: '/sapi/sys/resource/del',
    method: 'post',
    data: data
  })
}

export default {
  page,
  del,
  add,
  edit,
  detail
}
